const INITIAL_STATE = {
	_id: '',
	collector: [],
	belong_space: '',
	last_modified_time: '',
	title: '',
	content: '',
	author: '',
	create_time: '',
}

export default function article(state = INITIAL_STATE, action) {
	switch (action.type) {
		case 'UPDATE_ARTICLE': {
			return { ...state, ...action.payload }
		}
		default:
			return state
	}
}
